package com.jgp.common.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 项目   jgp
 * 作者   loufei
 * 时间   2017/7/7
 */
public class TreeBean implements Serializable {
    
    private String key;
    private String parentKey;
    private String title;
    private String tip;
    private String icon;
    private Integer level;
    private String supers;
    private Object bean;
    
    private List<TreeBean> children = new ArrayList<>();
    
    public TreeBean() {}
    
    public TreeBean(Object key, Object parentKey, String supers, Object bean) {
        this.key = key.toString();
        this.parentKey = parentKey.toString();
        this.supers = supers;
        this.bean = bean;
    }
    
    public String getKey() {
        return key;
    }
    
    public void setKey(String key) {
        this.key = key;
    }
    
    public String getParentKey() {
        return parentKey;
    }
    
    public void setParentKey(String parentKey) {
        this.parentKey = parentKey;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getTip() {
        return tip;
    }
    
    public void setTip(String tip) {
        this.tip = tip;
    }
    
    public String getIcon() {
        return icon;
    }
    
    public void setIcon(String icon) {
        this.icon = icon;
    }
    
    public Object getBean() {
        return bean;
    }
    
    public void setBean(Object bean) {
        this.bean = bean;
    }
    
    public String getSupers() {
        return supers;
    }
    
    public void setSupers(String supers) {
        this.supers = supers;
    }
    
    public List<TreeBean> getChildren() {
        return children;
    }
    
    public void setChildren(List<TreeBean> children) {
        this.children = children;
    }
    
    public Integer getLevel() {
        return level;
    }
    
    public void setLevel(Integer level) {
        this.level = level;
    }
}
